<?php

namespace CMBUBank\UBank\Response\TransManager;

use CMBUBank\UBank\Response\UBankBaseResponse;

class TransManagerSubunitPDFCreateResponse extends UBankBaseResponse
{
    protected $responseCode = ['ntdmtqryzx'];

    protected $pageCode = 'ntdmtqryy1';

    public function getTaskId()
    {
        return  $this->get('taskid','');
    }

    public function pageFormat()
    {
        $hasNext = $this->pageInfo[0]['ctnkey'] ?? false;

        if ($hasNext) {
            $this->nextPage = $hasNext;
        }
    }
}